add_subdirectory(common)
add_subdirectory(corba)
add_subdirectory(physics)
add_subdirectory(communication)
add_subdirectory(rendering)
add_subdirectory(examples)
add_subdirectory(ticpp)

ADD_DEPENDENCIES(communication corba)

include_directories(
	common
	corba
	${CMAKE_CURRENT_BINARY_DIR}/corba
	physics
	communication
	rendering
	ticpp
)

add_executable (incubate incubate.cpp Xmlable.cpp TactileShape.cpp)

target_link_libraries (incubate ${GL_LIBRARIES} ${GLUT_LIBRARY}
${OMNIORB4_LIBRARIES} ${OMNIDYNAMIC4_LIBRARIES}
${ODE_LIBRARIES} ticpp communication corba physics rendering common 
boost_thread boost_program_options)

add_executable (incquery incquery.cpp)
 
target_link_libraries (incquery ${GL_LIBRARIES} ${GLUT_LIBRARY}
${OMNIORB4_LIBRARIES} ${OMNIDYNAMIC4_LIBRARIES}
boost_program_options boost_thread corba common)

INSTALL(TARGETS incubate incquery RUNTIME DESTINATION bin)
INSTALL(FILES communication/ClientCallback.h communication/CorbaImplementations.h ${CMAKE_CURRENT_BINARY_DIR}/corba/incub.hh corba/CorbaHelper.h DESTINATION include/incub)
INSTALL(FILES corba/incub.idl DESTINATION share/idl/incub)
